<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://com.am.tag" %>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<%@ page import="com.system.dao.DictionaryDao"%>
<%
	DictionaryDao dao = new DictionaryDao();
	Map<String,Object> map = dao.getMessage();
	pageContext.setAttribute("map", map);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Login</title>
		<meta http-equiv="expires" content="0">
		<script language="JavaScript" type="text/javascript">
			<!-- 
				//SPR# KMOA6YUDZ3: ignore any focus errors in case the focus can't be set (form invisible, etc)
				window.onerror = new Function("return true;");
				function setFormFocus() {
				  var Sys = {};
				  var ua = navigator.userAgent.toLowerCase();
				  if(window.ActiveXObject){
				    Sys.ie = ua.match(/msie ([\d.]+)/)[1];
				  }
				  var version = Number(Sys.ie);
				  if(!Sys.ie||(version!=7&&version!=8&&version!=9&&version!=10)) {
				    	var otd = document.getElementsByTagName("td");
				  		var o = otd[0];
				  		o.innerHTML="<p><img src='${path}/images/login/confirm.png' height='20px' width='20px' style='valign:center'></img>&nbsp;本系统不支持当前浏览器，请使用IE8/IE9/IE10登录本系统！</p>";
				  }
				  document.forms[0].username.focus(); 
				  document.forms[0].username.select();
				  
				  
				// 如果登录页面显示在了框架里（frame），则在顶层窗口显示登录页面（不要嵌套显示）
				var parentWin = window;
			 	if(parentWin != parentWin.parent)
			 	{
			 		while (parentWin != parentWin.parent) {
						//发现还有父窗口,把父节点赋值给当前节点,继续循环找,这种迭代方式值得学习
			        	parentWin = parentWin.parent;
			    	}
			    	
			    	parentWin.location.href = window.location.href;
			 	}
			}
			// -->
		</script>
		<style>
			A,TABLE,TH,TD,TR,SPAN,DIV {
				font-family: "MS Sans Serif", Arial, Helvetica, sans-serif;
				font-size: 10pt;
			}
			
			.loginbg {
				BACKGROUND-IMAGE: url(${path}/images/login/loginbg.png);
				PADDING-LEFT: 20px;
				BACKGROUND-REPEAT: no-repeat !important
			}
			
			.logininput {
				BORDER-RIGHT-WIDTH: 0pt;
				BORDER-TOP-WIDTH: 0pt;
				BORDER-BOTTOM-WIDTH: 0pt;
				BORDER-LEFT-WIDTH: 0pt;
				width: 195px;
				height: 30px;
				background-color: transparent;
				font-size: 15px;
				padding-top: 4px;
				padding-left: 3px;
				font-size: 14px;
				line-height: 25px;
			}
			
			.checkIE {
				color: #ACD6FF;
				font-size: 14px
			}
		</style>
	</head>
	
	<body text="#000000" bgcolor="#FFFFFF" onload="setFormFocus();" style="BACKGROUND:url(${path}/images/login/bg.png) #1d66b3; MARGIN: 0px; scroll: no" scroll="no">

	<form method="post" action="login" name="_DominoForm">
		<input type="hidden" name="%%ModDate" value="0000000000000000">
		<table border="0" width="100%" height="100%">
			<tbody>
				<tr height="30px">
					<td colspan="2" class="checkIE"></td>
				</tr>
				<tr>
					<td width="15%"></td>
					<td class="loginbg" valign="top">
						<table border="0" width="800">
							<tbody><tr height="250"><td></td><td valign="bottom"><font color="red">${requestScope.error}</font></td></tr>
								<tr height="38"><td width="395"></td><td><font color="#0000FF"> </font><font face="Courier New">
								<input name="username" value="" maxlength="50" autocomplete="off" class="logininput" id="user-id"></font><font color="#0000FF"> </font></td></tr>
								<tr height="47px"><td></td><td style="padding-top:8px"><font color="#0000FF"> </font><font face="Courier New">
								<input name="password" value="" type="password" maxlength="255" autocomplete="off" class="logininput" id="pw-id"></font><font color="#0000FF"> </font></td></tr>
								<tr><td></td><td style="PADDING-LEFT: 115px" height="36"><input type="image" src="${path}/images/login/login_btn.gif"></td></tr>
							</tbody>
							<tbody><tr height="0"><td></td><td valign="bottom">
								<font style="color:red">${map['operater1']}${map['operater1Num']}</font>
							</tbody>
							<tbody><tr height="0"><td></td><td valign="bottom">
								<font style="color:red">${map['operater2']}${map['operater2Num']}</font>
							</tbody>
						</table>
					</td>
			   </tr>
			</tbody>
			 
		</table>
		<br><div style="display:none"><br>
		<font size="2"> </font>
		<input type="submit" value="Sign In">
		</div>
	</form>
</body>
</html>

